package com.example.demo1;

public class ConcretePrototype implements Cloneable {

    private Student student;

    public ConcretePrototype() {
        System.out.println("代码创建了一个对象------------ = ");
    }

    @Override
    protected ConcretePrototype clone() throws CloneNotSupportedException {
        return (ConcretePrototype) super.clone();
    }


    public Student getStudent() {
        return student;
    }

    public void setStudent(Student student) {
        this.student = student;
    }
}
